import { http } from '@/utils/http/axios';

export function listAlarm(data = {}) {
  return http.request({
    url: '/admin/base/alarm/list',
    method: 'post',
    data,
  });
}

export function pageAlarm(data = {}) {
  return http.request({
    url: '/admin/base/alarm/page',
    method: 'post',
    data,
  });
}

export function addAlarm(data = {}) {
  return http.request({
    url: '/admin/base/alarm/add',
    method: 'post',
    data,
  });
}

export function updateAlarm(data = {}) {
  return http.request({
    url: '/admin/base/alarm/update',
    method: 'post',
    data,
  });
}

export function delAlarm(data = {}) {
  return http.request({
    url: '/admin/base/alarm/delete',
    method: 'post',
    data,
  });
}
